<?php

namespace app\common\validate;

class StreetValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'street_id'     => '街道ID',
        'street_name'   => '街道名称',
        'committees_id' => '村委会ID',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'index'  => [],
        'save'   => [],
        'update' => [],
        'delete' => [],
        'read'   => [],
        'addStreetItem' =>[
            'street_name'   => 'require',
            'committees_id' => 'require|integer|>=:1',
        ],
        'setStreetItem'=>[
            'street_id' =>'require|integer|>=:1',
            'street_name'   => 'require',
            'committees_id' => 'require|integer|>=:1',
        ],
        'delStreetItem'=>[
            'street_id' =>'require|integer|>=:1',
        ]
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
